<template>
    <div>
        我是父组件

        <SystemChildren :msg="'我是来自父组件的消息'" @showMes="showMes"></SystemChildren>
        
        <h1>{{msg}}</h1>
    </div>
</template>

<script>
    import SystemChildren from "./SystemChildren"

    export default {
        data(){
            return {
                msg: ''
            }
        },
        name: "System",
        components: {SystemChildren},
        methods:{
            showMes(val){
              this.msg = val
            }
        }


    }
</script>

<style scoped lang="less">

</style>
